﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %>
<%@ Register Assembly="ChartFX.WebForms.Adornments" Namespace="ChartFX.WebForms.Adornments" TagPrefix="chartfxadornments" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms.Galleries" TagPrefix="chartfx7galleries" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Fit2012r.aspx.cs" Inherits="Updms.Fit.Fit2012r" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>▒ UPDMS [Fit2012r] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
<tr>
	<td id="top_area" colspan="2">
		<!-- Top 시작 -->
		<ucTop:Top id="Top" runat="server"></ucTop:Top>
		<!-- Top 끝 -->	
	</td>
</tr>
<tr>
	<td id="menu_area">
		<!-- 메뉴 시작 -->
		<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
		<!-- 메뉴 끝 -->	
	</td>
	<td id="contents_area">
		<!-- 제목 시작 -->
		<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Fit2012r" runat="server"></ucTabTitle:TabTitle>
		<!-- 제목 끝 -->
		<!-- AJAX 시작 -->
		<asp:UpdatePanel ID="UpdatePanel1" runat="server">
		<ContentTemplate>
		<!-- 버튼 시작 -->
		<div class="button_area">
			<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
		</div>
		<!-- 버튼 끝 -->
		<!-- 검색 시작 -->
		<!-- 검색 끝 -->
		<!-- 기본정보 시작 -->
		<div class="sub_title_icon"><asp:Literal ID="ltr_stitle_figure" Text="신체지수" runat="server" /><asp:Literal id="ltr_figure" Text="" runat="server" /></div>
		<table class="table_detail">
		<tr>
			<td class="ctl_c" width="10%" rowspan="6"><asp:Label id="lbl_image_url" runat="server" Width="100%"></asp:Label></td>
			<td class="lbl" width="12%"><asp:Literal id="ltr_body_length" Text="키" runat="server" /></td>
			<td class="ctl" width="33%"><asp:Label id="lbl_body_length" runat="server"></asp:Label></td>
			<td class="lbl" width="12%"><asp:Literal id="ltr_soft_lean_mass" Text="근육량" runat="server" /></td>
			<td class="ctl" width="33%"><asp:Label id="lbl_soft_lean_mass" runat="server"></asp:Label></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_body_weight" Text="몸무게" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_body_weight" runat="server"></asp:Label></td>
			<td class="lbl"><asp:Literal id="ltr_body_fat_mass" Text="체지방량" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_body_fat_mass" runat="server"></asp:Label></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_bmi" Text="BMI" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_bmi" runat="server"></asp:Label></td>
			<td class="lbl"><asp:Literal id="ltr_body_fat_ratio" Text="체지방율" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_body_fat_ratio" runat="server"></asp:Label></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_training_day" Text="총운동일수" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_training_day" runat="server"></asp:Label></td>
			<td class="lbl"><asp:Literal id="ltr_waist_hip_fat_ratio" Text="복부지방율" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_waist_hip_fat_ratio" runat="server"></asp:Label></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_training_day_avg" Text="평균운동일" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_training_day_avg" runat="server"></asp:Label></td>
			<td class="lbl"><asp:Literal id="ltr_training_time" Text="총운동시간" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_training_time" runat="server"></asp:Label></td>
		</tr>
		<tr>
			<td class="lbl"><asp:Literal id="ltr_no_smoking" Text="금연경과일" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_no_smoking" runat="server"></asp:Label></td>
			<td class="lbl"><asp:Literal id="ltr_no_drinking" Text="금주경과일" runat="server" /></td>
			<td class="ctl"><asp:Label id="lbl_no_drinking" runat="server"></asp:Label></td>
		</tr>
		</table>
		<!-- 기본정보 끝 -->
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
			<td style="width:48%">
				<!-- 운동부위별 트레이닝결과 챠트 시작 -->
				<div class="sub_title_icon"><asp:Literal ID="ltr_stitle_weight_count" Text="운동부위별 트레이닝결과" runat="server" /><asp:Literal id="ltr_weight_count" Text="" runat="server" /></div>
				<table class="default">
				<tr>
					<td class="td_box">
						<chartfx7:Chart ID="chart_weight_count" runat="server" Height="230px" Palette="ChartFX6.ChartFX6" Width="500px" ImageSettings-Interactive="False">
							<AxisY Title-Text="">
								<Grids Major-Style="Dash" Interlaced="True"></Grids>
								<LabelsFormat CustomFormat="###,###,##0" />
							</AxisY>

							<AxisX Title-Text="">
							<Grids Major-Visible="False"></Grids>
							</AxisX>

							<MainPane AxisY-Title-Text=""></MainPane>
							<SpecialObjects>
								<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
									Type="None">
								</chartfxadornments:SimpleBorder>
								<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
									ColorFrom="Transparent" EffectArea="0">
								</chartfxadornments:GradientBackground>
								<chartfx7galleries:Bar>
								</chartfx7galleries:Bar>
							</SpecialObjects>
							<Series>
								<chartfx7:SeriesAttributes Text="반복횟수" />
								<chartfx7:SeriesAttributes Text="중량" />
							</Series>
							<AllSeries Gallery="Gantt">
							</AllSeries>
							<LegendBox Dock="Right">
							</LegendBox>
							</chartfx7:Chart>
					</td>
				</tr>
				</table>
				<!-- 운동부위별 트레이닝결과 챠트 끝 -->
			</td>
			<td style="width:1%"></td>
			<td style="width:25%" valign="top">
				<!-- 리스트 시작 -->
				<div style="height:19px;"></div>
				<asp:GridView ID="GridView1" CssClass="table_gridview" HeaderStyle-Height="30" Height="233" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="Training_Part" ShowFooter="true">
					<Columns>
						<asp:BoundField DataField="Training_Part_Nm" HeaderText="운동부위" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Left" Width="30%" />
						</asp:BoundField>
						<asp:BoundField DataField="Total_Weight" HeaderText="중량" DataFormatString="{0:#,###,##0}" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Right" Width="35%" />
						</asp:BoundField>
						<asp:BoundField DataField="Total_Count" HeaderText="반복횟수" DataFormatString="{0:#,###,##0}" HtmlEncode="False" >
							<ItemStyle HorizontalAlign="Right" Width="35%" />
						</asp:BoundField>
					</Columns>
					<EmptyDataTemplate>
						<div id="no_data"></div>
					</EmptyDataTemplate>
				</asp:GridView>
				<!-- 리스트 끝 -->
			</td>
			<td style="width:1%"></td>
			<td style="width:25%">
				<!-- 요일별 운동일 챠트 시작 -->
				<div class="sub_title_icon"><asp:Literal ID="ltr_stitle_training_day_by_weekday" Text="요일별 운동일" runat="server" /></div>
				<table class="default">
				<tr>
					<td class="td_box">
						<chartfx7:chart id="chart_training_day_by_weekday" runat="server" width="260px" height="230px" Palette="ChartFX6.ChartFX6" ImageSettings-Interactive="False">
							<AxisY Title-Text="" Step="10">
							<Grids Major-Style="Solid" Interlaced="True"></Grids>
								<LabelsFormat CustomFormat="###,###,##0" />
							</AxisY>

							<AxisX LabelAngle="90" Title-Text="">
							</AxisX>

							<AllSeries Gallery="Polar"></AllSeries>

							<LegendBox Visible="False"></LegendBox>

							<MainPane AxisY-Title-Text=""></MainPane>
							<SpecialObjects>
								<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
									Type="None">
								</chartfxadornments:SimpleBorder>
								<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
									ColorFrom="Transparent" EffectArea="0">
								</chartfxadornments:GradientBackground>
								<chartfx7galleries:Radar>
								</chartfx7galleries:Radar>
							</SpecialObjects>
							<Series>
								<chartfx7:SeriesAttributes />
								<chartfx7:SeriesAttributes />
								<chartfx7:SeriesAttributes />
							</Series>
						</chartfx7:chart>
					</td>
				</tr>
				</table>
				<!-- 요일별 운동일 챠트 끝 -->
			</td>
		</tr>
		<tr>
			<td colspan="5" height="10"></td>
		</tr>
		<tr>
			<td colspan="5">
				<!-- 인바디지수 챠트 시작 -->
				<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td style="width:10%;"><div class="sub_title_icon"><asp:Literal ID="ltr_stitle_inbody_ratio" Text="인바디지수" runat="server" /></div></td>
					<td style="width:20%;">
						<ul class="horizontal">
							<li style="width:80px;"><asp:dropdownlist id="ddl_search_base_year" runat="server" CssClass="ddl"></asp:dropdownlist></li>
							<li style="width:60px;padding:2px 0 0 0;"><asp:linkbutton id="ibtn_prev_year" ToolTip="전년" runat="server" OnClick="ibtn_prev_year_Click"><img src="../Common/Images/arrow_rect_left.gif" alt="전년" /></asp:linkbutton>
							<asp:linkbutton id="ibtn_this_year" ToolTip="당년" runat="server" OnClick="ibtn_this_year_Click"><img src="../Common/Images/control_rect_stop.gif" alt="당년" /></asp:linkbutton>
							<asp:linkbutton id="ibtn_next_year" ToolTip="차년" runat="server" OnClick="ibtn_next_year_Click"><img src="../Common/Images/arrow_rect_right.gif" alt="차년" /></asp:linkbutton></li>
						</ul>
					</td>
					<td style="width:70%;">
						<table class="div_right">
						<tr style="padding-left:4px">
							<td style="padding-left:4px"><asp:Literal id="ltr_bmi_series" Text="BMI" runat="server" /> : </td>
							<td style="padding-left:4px"><span class="icon sicon_bmi_0"></span><asp:Literal id="ltr_bmi_0" Text="저체중" runat="server" /></td>
							<td style="padding-left:4px"><span class="icon sicon_bmi_1"></span><asp:Literal id="ltr_bmi_1" Text="정상" runat="server" /></td>
							<td style="padding-left:4px"><span class="icon sicon_bmi_2"></span><asp:Literal id="ltr_bmi_2" Text="과체중" runat="server" /></td>
							<td style="padding-left:4px"><span class="icon sicon_bmi_3"></span><asp:Literal id="ltr_bmi_3" Text="비만" runat="server" /></td>						
							<td style="padding-left:4px"><span class="icon sicon_bmi_4"></span><asp:Literal id="ltr_bmi_4" Text="고도비만" runat="server" /></td>
						</tr>
					</table>
					</td>
				</tr>
				<table class="default">
				<tr>
					<td class="td_box">
						<chartfx7:chart id="chart_inbody_ratio" runat="server" height="320px" width="1000px" Palette="ChartFX6.ChartFX6" ImageSettings-Interactive="False">
							<AxisY Title-Text="">
							<Grids Major-Style="Dash" Interlaced="True"></Grids>
								<LabelsFormat CustomFormat="###,###,##0.#" />
							</AxisY>
								
							<AxisX Title-Text="">
							<Grids Major-Visible="False"></Grids>
							</AxisX>

							<MainPane AxisY-Title-Text="" Proportion="5" Title-Text=""></MainPane>
							<SpecialObjects>
								<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
									Type="None">
								</chartfxadornments:SimpleBorder>
								<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
									ColorFrom="Transparent" EffectArea="0">
								</chartfxadornments:GradientBackground>
							</SpecialObjects>
							<Series>
								<chartfx7:SeriesAttributes Gallery="Lines" Text="몸무게" PointLabels-LineAlignment="Near" />
								<chartfx7:SeriesAttributes Gallery="Lines" Text="근육량" PointLabels-LineAlignment="Near" />
								<chartfx7:SeriesAttributes Gallery="Lines" Text="체지방량" PointLabels-LineAlignment="Near" />
								<chartfx7:SeriesAttributes Gallery="Lines" Text="복부지방율" PointLabels-LineAlignment="Near" />
								<chartfx7:SeriesAttributes Gallery="Scatter" Pane="Pane #2" PointLabels-LineAlignment="Near" Text="BMI" />
								<chartfx7:SeriesAttributes Gallery="Scatter" Pane="Pane #3" PointLabels-LineAlignment="Near" Text="체지방율" />
							</Series>
							<AllSeries PointLabelOrganizer-AutoArrange="True" PointLabelOrganizer-Enabled="True"
								PointLabels-BorderColor="Transparent" PointLabels-LineAlignment="Center">
							</AllSeries>
							<LegendBox ContentLayout="Near" Dock="Bottom"></LegendBox>
							<Panes>
								<chartfx7:Pane AxisY-LabelsFormat-Decimals="2" Title-Text="
								BMI" />
							</Panes>
							<Panes>
								<chartfx7:Pane AxisY-LabelsFormat-Decimals="1" Title-Text="
								체지방율" />
							</Panes>
						</chartfx7:chart>
					</td>
				</tr>
				<tr>
					<td height="10"></td>
				</tr>
				</table>
				<!-- 인바디지수 챠트 끝 -->
			</td>
		</tr>
		<tr>
			<td colspan="5">
				<!-- 몸무게 챠트 시작 -->
				<div class="sub_title_icon"><asp:Literal ID="ltr_stitle_body_weight" Text="몸무게" runat="server" /></div>
				<table class="default">
				<tr>
					<td class="td_box">
						<chartfx7:Chart ID="chart_body_weight" runat="server" Height="200px" Palette="ChartFX6.ChartFX6" Width="1000px" ImageSettings-Interactive="False">
							<AxisY Title-Text="(㎏)">
								<Grids Major-Style="Dash" Interlaced="True"></Grids>
								<LabelsFormat CustomFormat="##0.0" />
							</AxisY>

							<AxisX Title-Text="">
							<Grids Major-Visible="False"></Grids>
							</AxisX>

							<MainPane AxisY-Title-Text="(㎏)"></MainPane>
							<SpecialObjects>
								<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
									Type="None">
								</chartfxadornments:SimpleBorder>
								<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
									ColorFrom="Transparent" EffectArea="0">
								</chartfxadornments:GradientBackground>
								<chartfx7galleries:Curve>
								</chartfx7galleries:Curve>
							</SpecialObjects>
							<Series>
								<chartfx7:SeriesAttributes />
								<chartfx7:SeriesAttributes />
								<chartfx7:SeriesAttributes />
							</Series>
						<AllSeries PointLabels-Visible="True" Gallery="Curve">
						</AllSeries>
							<LegendBox Visible="False">
							</LegendBox>
						</chartfx7:Chart>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
		<asp:Panel ID="Panel1" style="display:none;" runat="server">
			<div class="div_scroll div_box" style="width:558px;height:240px;overflow-x:auto;">
			<img id="img_close" src="../Common/Images/close.gif" class="hand" style="position:absolute;padding-left:546px" onclick="hideSnapshotList();" alt="닫기" /><br />
			<asp:Label id="lbl_snapshot_list" runat="server"></asp:Label>
			</div>
		</asp:Panel>
		<!-- 카피라이트 시작 -->
		<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
		<!-- 카피라이트 끝 -->
		<!-- 히든값 시작 -->
		<div id="hdn_data">
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			<asp:Label id="lbl_snapshot_list_dummy" runat="server"></asp:Label>
		</div>
		<!-- 히든값 끝 -->
		<act:ModalPopupExtender ID="mpe_snapshot_list" runat="server"
			BehaviorID="mpe_snapshot_list_b"
			TargetControlID="lbl_snapshot_list_dummy"
			PopupControlID="Panel1"
			CancelControlID="img_close"
			BackgroundCssClass="modalBackground" />
		</ContentTemplate>
		</asp:UpdatePanel>
		<!-- AJAX 끝 -->
	</td>
</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//스냅샷리스트 조회
	function viewSnapshotList() {
		var mpeBehavior = $find('mpe_snapshot_list_b');
		mpeBehavior.show();
	}

	//스냅샷리스트 숨기기
	function hideSnapshotList() {
		var mpeBehavior = $find('mpe_snapshot_list_b');
		mpeBehavior.hide();
	}
</script>
</body>
</html>